home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / network / ka9q / ka9q_src.arc / FILES.C < prev    next >
C/C++ Source or Header  |  1988-07-28  |  3KB  |  88 lines

  1. /* System-dependent definitions of various files, spool directories, etc */
  2.  
  3. #if    (LATTICE || MAC || ATARI_ST)
  4. /* These compilers require special open modes when reading binary files
  5.  * 
  6.  * "The single most brilliant design decision in all of UNIX was the
  7.  * choice of a SINGLE character as the end-of-line indicator" -- M. O'Dell
  8.  *
  9.  * "Whoever picked the end-of-line conventions for MS-DOS and the Macintosh
  10.  * should be shot!" -- P. Karn's corollary to O'Dells' declaration
  11.  *
  12.  * Index definitions for this array are in global.h
  13.  */
  14. char *binmode[] = {
  15.     "rb",    /* Read binary */
  16.     "wb",    /* Write binary */
  17.     "ab"    /* Append binary */
  18. };
  19. #else
  20. /* fopen modes for binary files under Aztec -- same as UNIX */
  21. char *binmode[] = {
  22.     "r",    /* Read */
  23.     "w",    /* Write */
  24.     "a"    /* Append */
  25. };
  26. #endif
  27.  
  28. /* don't move the Atari files def, there is a bug in the compiler that causes */
  29. /* trouble with the "mailqueue" definition of other systems (comment sequence) */
  30. /* the a: in filenames below is fixed at program startup - don't remove it! */
  31. /* Well, I beg to differ. I like the following def's better. DG2KK */
  32. #ifdef    ATARI_ST
  33. char startup[]     = "\\net.rc";            /* Initialization file */
  34. char userfile[]  = "\\ftpusers";         /* Authorized FTP users and passwords */
  35. char hosts[]     = "\\hosts.net";        /* Network host table */
  36. char mailspool[] = "\\spool\\inbound\\";    /* Incoming mail */
  37. char mailqdir[]  = "\\spool\\outbound\\";     /* Outgoing mail spool */
  38. char mailqueue[] = "\\spool\\outbound\\*.wrk";    /* Outgoing mail work files */
  39. char baddir[]     = "\\spool\\badjobs\\";    /* Undeliverable jobs */
  40. char tmpdir[]     = "\\tmp";            /* temp files directory */
  41. char bm_rc[]     = "\\bm.rc";            /* BM reconfiguration file */
  42. #endif
  43.  
  44. #ifdef    MSDOS
  45. char startup[] = "/autoexec.net";        /* Initialization file */
  46. char userfile[] = "/ftpusers";            /* Authorized FTP users and passwords */
  47. char hosts[] = "/hosts.net";            /* Network host table */
  48. char mailspool[] = "/spool/mail/";        /* Incoming mail */
  49. char mailqdir[] = "/spool/mqueue/";        /* Outgoing mail spool */
  50. char mailqueue[] = "/spool/mqueue/*.wrk";    /* Outgoing mail work files */
  51. char baddir[] = "/spool/badjobs/";        /* Undeliverable jobs */
  52. char bm_rc[] = "/bm.rc";            /* BM reconfiguration file */
  53. #endif
  54.  
  55. #ifdef    UNIX
  56. char startup[] = "./startup.net";        /* Initialization file */
  57. char config[] = "./config.net";         /* Device configuration list */
  58. char userfile[] = "./ftpusers";
  59. char hosts[] = "./hosts.net";
  60. char mailspool[] = "/usr/spool/mail/";
  61. char mailqdir[] = "/usr/spool/mqueue/";
  62. char mailqueue[] = "/usr/spool/mqueue/*.wrk";    /* Outgoing mail work files */
  63. char baddir[] = "/usr/spool/badjobs/";
  64. #endif
  65.  
  66. #ifdef    AMIGA
  67. char startup[] = "TCPIP:net.start";
  68. char config[] = "TCPIP:config.net";        /* Device configuration list */
  69. char userfile[] = "TCPIP:ftpusers";
  70. char hosts[] = "TCPIP:hosts.net";
  71. char mailspool[] = "TCPIP:spool/mail/";
  72. char mailqdir[] = "TCPIP:spool/mqueue/";
  73. char mailqueue[] = "TCPIP:spool/mqueue/*.wrk";    /* Outgoing mail work files */
  74. char baddir[] = "TCPIP:spool/badjobs/";
  75. #endif
  76.  
  77. #ifdef    MAC
  78. char startup[] ="Mikes Hard Disk:net.start";
  79. char config[] = "Mikes Hard Disk:config.net";    /* Device configuration list */
  80. char userfile[] = "Mikes Hard Disk:ftpusers";
  81. char hosts[] = "Mikes Hard Disk:hosts.net";
  82. char mailspool[] = "Mikes Hard Disk:spool:mail:";
  83. char mailqdir[] = "Mikes Hard Disk:spool:mqueue:";
  84. char mailqueue[] = "Mikes Hard Disk:spool:mqueue:*.wrk"; /* Outgoing mail work files */
  85. char baddir[] = "Mikes Hard Disk:spool:badjobs:";
  86. #endif
  87.  
  88.